package com.cqhilink.iot.jobstandardmanagement.facade.service.updateMsg;

import com.cqhilink.iot.jobstandardmanagement.facade.model.JsmUpdateInfo;

import java.util.Map;

/**
 * Created by 卢曼成 on 2017/7/31.
 */
public interface JsmUpdateInfoService {
    /**
     * 物理删除
     *
     * @param upInfoId
     * @return
     */
    Map<String, Object> delete(String upInfoId) throws Exception;

    /**
     * 物理批量删除
     *
     * @param upInfoIds
     * @return
     * @throws Exception
     */
    Map<String, Object> deleteList(String upInfoIds) throws Exception;

    /**
     * 添加
     *
     * @param record
     * @return
     */
    Map<String, Object> save(JsmUpdateInfo record) throws Exception;


    /**
     * 根据ID查询
     *
     * @param upInfoId
     * @return
     */
    JsmUpdateInfo selectByPrimaryKey(String upInfoId) throws Exception;

    /**
     * 修改
     *
     * @param record
     * @return
     */
    Map<String, Object> update(JsmUpdateInfo record) throws Exception;


    /**
     * 分页查询
     *
     * @param record
     * @return
     */
    Map<String, Object> queryList(JsmUpdateInfo record) throws Exception;

}
